package com.suke.czx.modules.examstack.exam.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.suke.czx.modules.examstack.exam.dao.DepartmentDao;
import com.suke.czx.modules.examstack.exam.entity.DepartmentEntity;
import com.suke.czx.modules.examstack.exam.service.DepartmentService;



@Service("departmentService")
public class DepartmentServiceImpl implements DepartmentService {
	@Autowired
	private DepartmentDao departmentDao;
	
	@Override
	public DepartmentEntity queryObject(Integer depId){
		return departmentDao.queryObject(depId);
	}
	
	@Override
	public List<DepartmentEntity> queryList(Map<String, Object> map){
		return departmentDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return departmentDao.queryTotal(map);
	}
	
	@Override
	public void save(DepartmentEntity department){
		departmentDao.save(department);
	}
	
	@Override
	public void update(DepartmentEntity department){
		departmentDao.update(department);
	}
	
	@Override
	public void delete(Integer depId){
		departmentDao.delete(depId);
	}
	
	@Override
	public void deleteBatch(Integer[] depIds){
		departmentDao.deleteBatch(depIds);
	}
	
}
